package com.wjv.example.springboot.base.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>Title: MyConfig</p>
 *
 * @author wjv
 * @since 2021/7/27 16:14
 */
@Data
// @Component
@ConfigurationProperties(prefix = MyConfig.PREFIX)
public class MyConfig {

    public static final String PREFIX = "my.config";

    private String name;

    private String age;

    private boolean boss;

    private Date birth;

    private Map<String,String> maps;

    private List<String> list;

    private List<MyAppKey> myAppKeys;
}
